import { http } from '@/utils/http';
import type { FollowItem } from '@/type/follow'
//获取关注列表
export const API_getFollowList = (userId:number) => {
    return http<FollowItem[]>({
    method: 'GET',
    url: `/follow/followList?userId=${userId}`,
  })
}
//获取粉丝
export const API_getFansList = (userId:number) => {
    return http<FollowItem[]>({
    method: 'GET',
    url: `/follow/fanList?userId=${userId}`,
  })
}
//移除关注列表
export const API_removeFollowing = (userId:number,followerUserId:number) => {
    return http<string>({
    method: 'DELETE',
    url: `/follow/removeFollow?userId=${userId}&followerUserId=${followerUserId}`,
  })
}

//添加关注列表
export const API_addFollowing = (userId:number,followerUserId:number) => {
    return http<string>({
    method: 'POST',
    url: `/follow/addFollow?userId=${userId}&followerUserId=${followerUserId}`,
  })
}